import tempfile
	
	data = get_string_data()  # fancy call out to NoSQL
	with tempfile.NamedTemporaryFile() as fp:
	    fp.write(data)
	    fp.seek(0)
	    obj = Foo.from_filepath(fp.name)
